package com.kordar.rbac;

import lombok.Data;

import java.util.Date;

@Data
public class Item {
    /**
     * int the type of the item. This should be either [[TYPE_ROLE]] or [[TYPE_PERMISSION]].
     */
    private Integer type;
    /**
     * string the name of the item. This must be globally unique.
     */
    private String name;
    /**
     * string the item description
     */
    private String description;
    /**
     * string name of the rule associated with this item
     */
    private String ruleName;
    /**
     * mixed the additional data associated with this item
     */
    private byte[] data;

    /**
     * int UNIX timestamp representing the item creation time
     */
    private Date createTime;

    /**
     * int UNIX timestamp representing the item updating time
     */
    private Date updateTime;
}
